﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace IMCOM.Imagiality.ImageProcessing.Canvas2D.ROI
{
    public class FirstPointSelection : Canvas2DROIState
    {

        public FirstPointSelection(Canvas2DImageProcessor controller) : base(controller)
        {

        }

        public override void MouseDown(object sender, MouseEventArgs e)
        {
            SecondPointSelection newState = new SecondPointSelection(controller);
            newState.ROIRect = new Rectangle(e.X, e.Y, 0, 0);

            SetControllerState(newState);
        }

        public override void MouseUp(object sender, MouseEventArgs e)
        {
            // do nothing
        }

        public override void MouseMoved(object sender, MouseEventArgs e)
        {
            // do nothing
        }

        public override void ImagePainted(object sender, PaintEventArgs e)
        {
            // do nothing

        }
    }
}
